package com.caius.framework.biz.context.config;

import com.caius.framework.biz.context.filter.HeaderUserId2ContextFilter;
import com.caius.framework.biz.context.holder.LoginUserContextHolder;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author Caius
 * @description
 * @since Created in 2025-05-16
 */
@AutoConfiguration
public class ContextAutoConfiguration {
    @Bean
    public HeaderUserId2ContextFilter headerUserId2ContextFilter() {
        return new HeaderUserId2ContextFilter();
    }

    @Bean
    public LoginUserContextHolder loginUserContextHolder() {
        return new LoginUserContextHolder();
    }
}
